﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 时间
    /// </summary>
    /// <remarks>
    /// typedef struct 
    /// {
    ///     Uint16  year;
    ///     Uint8   month;   /* scope is 1 - 12 */
    ///     Uint8   day;     /* scope is 1 - 31 */
    ///     Uint8   hour;    /* scope is 0 - 23 */
    ///     Uint8   minute;  /* scope is 0 - 59 */
    ///     Uint8   second;  /* scope is 0 - 59 */
    ///     //Uint8   week;    /* scope is 1 - 7  */ 
    /// }T_SYS_TIME;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct T_SYS_TIME
    {
        #region Fields

        /// <summary>
        /// 年
        /// </summary>
        public UInt16 year;

        /// <summary>
        /// 月
        /// </summary>
        public byte month;

        /// <summary>
        ///日
        /// </summary>
        public byte day;

        /// <summary>
        ///时
        /// </summary>
        public byte hour;

        /// <summary>
        ///分
        /// </summary>
        public byte minute;

        /// <summary>
        ///秒
        /// </summary>
        public byte second;

        #endregion
    }
}
